<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<%--
  Created by IntelliJ IDEA.
  User: yxs
  Date: 2017/3/2
  Time: 17:06
  To change this template use File | Settings | File Templates.
--%>
<html>
<head>
    <title>班级详情</title>
    <meta name="decorator" content="default"/>
</head>
<body>
<ul class="nav nav-tabs">
  <li><a href="${ctx}/teach/teachClass/">班级列表</a></li>
  <li class="active"><a href="${ctx}/teach/teachClass/detail?id=${teachClass.id}">班级详情</a></li>
</ul><br/>
<form:form id="inputForm" modelAttribute="teachClass" action="" method="post" class="form-horizontal">
  <sys:message content="${message}"/>
  <div class="control-group">
    <label class="control-label">班级名称：</label>
    <div class="controls">
      <form:input name="className" path="className"  htmlEscape="false" maxlength="64" class="input-xlarge required" readonly="true"/>
    </div>
  </div>
  <div class="control-group">
    <label class="control-label">班主任名称：</label>
    <div class="controls">
      <form:input name="userId" path="userId"  htmlEscape="false" maxlength="64" class="input-xlarge required" readonly="true"  />


      <%--<input id="userId" value="${param.teacherName}" class="input-xlarge required" readonly="true"  htmlEscape="false" maxlength="64">--%>
      <%--<select id="userId" name="userId" class="input-xlarge">--%>
        <%--<option value="0">无</option>--%>
        <%--<c:forEach items="${allTeacherList}" var="allTeacher">--%>
          <%--<option value="${allTeacher.id}">${allTeacher.name}</option>--%>
        <%--</c:forEach>--%>
      <%--</select>--%>

      <%--<form:select path="userId" name="userId" class="input-xlarge required" disabled="true">--%>
        <%--<form:option value="" label=""/>--%>
        <%--<form:options items="${fns:getDictList('resource_course_attribute')}" itemLabel="label" itemValue="value" htmlEscape="false"/>--%>
      <%--</form:select>--%>
    </div>
  </div>
  <div class="control-group">
    <label class="control-label">该班学生：</label>
    <div class="controls">
      <table id="contentTable" class="table table-striped table-bordered table-condensed">
        <thead>
        <tr>
          <th>学生序号</th>
          <th>学生名字</th>
        </tr>
        </thead>
        <tbody>
        <c:forEach items="${page.list}" var="teachStudent" varStatus="status">
          <tr>
            <td>
                ${status.count}
            </td>
            <td>
              <%--<a href="#"> ${teachStudent.name}</a>--%>
               ${teachStudent.name}
            </td>
          </tr>
        </c:forEach>
        </tbody>
      </table>
      <div class="pagination">${page}</div>
    </div>
  </div>
  <div class="control-group">
    <label class="control-label">备注信息：</label>
    <div class="controls">
      <form:textarea path="remarks" htmlEscape="false" rows="4" maxlength="255"  readonly="true" class="input-xxlarge "/>
    </div>
  </div>
  <div class="form-actions">
    <%--<input id="btnSubmit" class="btn btn-primary" type="button" value="班级列表查看" onclick="window.location.href='${ctx}/teach/teachClass/'"/>&nbsp;--%>
    <input id="btnCancel" class="btn" type="button" value="返 回" onclick="history.go(-1)"/>
  </div>
</form:form>

</body>
</html>
